#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int arr1[] = { 1, 2 };
	int arr2[] = { 3, 4 };
	for (int i = 0; i < 2; i++)
	{
		int t = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = t;
	}
	for (int i = 0; i < 2; i++)
	{
		printf("%d ", arr1[i]);
	}
	printf("\n");
	for (int i = 0; i < 2; i++)
	{
		printf("%d ", arr2[i]);
	}
}